-
Notifications
You must be signed in to change notification settings - Fork 3.9k
A68 random subsetting (part 1) #12377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
9178308 to
aefee00
Compare
aefee00 to
1870e6f
Compare
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancer.java
Outdated
Show resolved
Hide resolved
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancer.java
Outdated
Show resolved
Hide resolved
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancer.java
Outdated
Show resolved
Hide resolved
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancer.java
Outdated
Show resolved
Hide resolved
This reverts commit 8d349df.
|
@ejona86 - PR updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sending what I have. I expect I'll have a few more comments, but I suspect nothing that impacts the changes for these comments.
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancer.java
Outdated
Show resolved
Hide resolved
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancer.java
Outdated
Show resolved
Hide resolved
util/src/test/java/io/grpc/util/RandomSubsettingLoadBalancerTest.java
Outdated
Show resolved
Hide resolved
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancerProvider.java
Show resolved
Hide resolved
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancer.java
Outdated
Show resolved
Hide resolved
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancer.java
Outdated
Show resolved
Hide resolved
|
@ejona86 - PR updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to stare at BackendDetails a bit to see what's going on there with the Answer, but sending what I have.
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancer.java
Outdated
Show resolved
Hide resolved
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancerProvider.java
Outdated
Show resolved
Hide resolved
.../proto/envoy/extensions/load_balancing_policies/random_subsetting/v3/random_subsetting.proto
Outdated
Show resolved
Hide resolved
|
@ejona86 - pushed changes. However, I do have two questions, which I have posted as answers to your comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. I just need to figure out that one string, of whether it will be marked experimental initially.
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancer.java
Outdated
Show resolved
Hide resolved
util/src/main/java/io/grpc/util/RandomSubsettingLoadBalancerProvider.java
Outdated
Show resolved
Hide resolved
|
|
||
| @Internal | ||
| public final class RandomSubsettingLoadBalancerProvider extends LoadBalancerProvider { | ||
| private static final String POLICY_NAME = "random_subsetting"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to ask around to remember if we decided it should initially be _experimental until a user says it works.
implementing gRFC A65 grpc/proposal/pull/423
This change contains:
Relocation ofUsage ofXxHash64library, so it can be shared betweenutilandxdsprojects. Proposed source directory is:third-party/zero-allocation-hashing.murmur3_128hashing algorithm from Guava library.RandomSubsettingLoadBalancerandRandomSubsettingLoadBalancerProviderclasses and integration into theutilproject.Implementation of xDS conversion function forSince envoy extensions does not supportrandom_subsettingLB policy and as well new envoy proto message.random_subsettingLB policy yet, xDS related changes will be introduced later. Envoy PR here.